package br.com.upper.entity;

import java.util.Date;

import javax.persistence.Entity;
import javax.persistence.ManyToOne;
import javax.persistence.SequenceGenerator;

@Entity
@SequenceGenerator(name="SEQUENCE",sequenceName="SEQ_TEST_INSTANCE_RESULT",initialValue=1,allocationSize=1)
public class TestInstanceResult extends EntityBase {

	@ManyToOne
	private TestResult testResult;
	
	private Date data;
	
	@ManyToOne
	private InstanceType instanceType;
		
	private VolumeType volumeType;
	
	private Long provisionedIOPs;
	
	private String transactionName;
	
	private Long transactionExecTime;
	
	private Long transactionMaxExecTime;
	
	private Integer transactionTotalExecutions;
	
	private Integer maxThreads;
	
	private Double cpuMetric;
	
	private Double memoryMetric;
	
	private Double diskMetric;
	
	public TestResult getTestResult() {
		return testResult;
	}

	public void setTestResult(TestResult testResult) {
		this.testResult = testResult;
	}

	public String getTransactionName() {
		return transactionName;
	}

	public void setTransactionName(String transactionName) {
		this.transactionName = transactionName;
	}

	public Long getTransactionExecTime() {
		return transactionExecTime;
	}

	public void setTransactionExecTime(Long transactionExecTime) {
		this.transactionExecTime = transactionExecTime;
	}

	public Long getTransactionMaxExecTime() {
		return transactionMaxExecTime;
	}

	public void setTransactionMaxExecTime(Long transactionMaxExecTime) {
		this.transactionMaxExecTime = transactionMaxExecTime;
	}

	public Date getData() {
		return data;
	}

	public void setData(Date data) {
		this.data = data;
	}

	public InstanceType getInstanceType() {
		return instanceType;
	}

	public void setInstanceType(InstanceType instanceType) {
		this.instanceType = instanceType;
	}

	public Integer getMaxThreads() {
		return maxThreads;
	}

	public void setMaxThreads(Integer maxThreads) {
		this.maxThreads = maxThreads;
	}

	public Double getCpuMetric() {
		return cpuMetric;
	}

	public void setCpuMetric(Double cpuMetric) {
		this.cpuMetric = cpuMetric;
	}

	public Double getMemoryMetric() {
		return memoryMetric;
	}

	public void setMemoryMetric(Double memoryMetric) {
		this.memoryMetric = memoryMetric;
	}

	public Double getDiskMetric() {
		return diskMetric;
	}

	public void setDiskMetric(Double diskMetric) {
		this.diskMetric = diskMetric;
	}

	public VolumeType getVolumeType() {
		return volumeType;
	}

	public void setVolumeType(VolumeType volumeType) {
		this.volumeType = volumeType;
	}

	public Long getProvisionedIOPs() {
		return provisionedIOPs;
	}

	public void setProvisionedIOPs(Long provisionedIOPs) {
		this.provisionedIOPs = provisionedIOPs;
	}

	public Integer getTransactionTotalExecutions() {
		return transactionTotalExecutions;
	}

	public void setTransactionTotalExecutions(Integer transactionTotalExecutions) {
		this.transactionTotalExecutions = transactionTotalExecutions;
	}	
	
	
	
	
	
}
